package ${package}.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
<#if hasDate>
import java.util.Date;
</#if>

@Data
public class ${entityName}QueryDTO {

<#list table.columns as column>
    @ApiModelProperty("${column.comment}")
    <#if column.type == "datetime" || column.type == "timestamp">
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    </#if>
    <#if column.type == "date">
    @JsonFormat(pattern = "yyyy-MM-dd")
    </#if>
    private ${CodeGeneratorUtils.convertType(column.type)} ${CodeGeneratorUtils.toCamelCase(column.name, false)};

</#list>
    @ApiModelProperty("页码")
    private Integer pageNum = 1;

    @ApiModelProperty("每页数量")
    private Integer pageSize = 10;
}